import ajax from "../config/ajax";

export default {
  login: (params) => (
    ajax({
      url: "/carbon/api/user/login",
      type: "get",
      data: params
    })
  ),
  register: (params) => (
    ajax({
      url: "/carbon/api/user/register",
      type: "get",
      data: params
    })
  ),
  logout: () => (
    ajax({
      url: "/carbon/api/user/logout",
      type: "get",
    })
  ),
  getUserInfo: () => {
    return ajax({
      url: "/carbon/api/user/user_info",
      type: "get",
    })
  },
};
